package com.kobe.algorithm;

/**
 * @作者：caopengfei
 * @时间：2020/6/23
 */
public class StringDemo {
    public static void main(String[] args) {

        String s1 = "abc";
        String s2 = "abc";

        String s3 = new String("abc");
        String s4 = "ab" + "c";
        System.out.println(s1 == s2);
        System.out.println(s2 == s3);
        System.out.println(s2 == s4);

    }
}
